package cn.com.surker.production.entity.vo;

import cn.com.surker.enums.ICodeDescEnum;
import cn.com.surker.enums.production.invoice.InvoiceSendTypeEnum;
import cn.com.surker.production.entity.ProductionIndentDispatch;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 派单详细信息
 *
 * @author luotao
 * @date 2024/10/28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class DispatchVo extends ProductionIndentDispatch {

	/**
	 * 车辆自编号
	 */
	private String carCode;

	/**
	 * 车牌号
	 */
	private String carNo;

	private String uploadTypeTxt;

	public String getUploadTypeTxt() {
		Integer uploadType = getUploadType();
		InvoiceSendTypeEnum anEnum = ICodeDescEnum.getEnum(InvoiceSendTypeEnum.class, uploadType);
		if (anEnum != null) {
			uploadTypeTxt = anEnum.getDescription();
		}
		return uploadTypeTxt;
	}
}
